<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/reportProblem.do?action=shwoErrorInfoPage"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<HTML>

<HEAD>
    <TITLE>ChipTrac - More information about the problem</TITLE>

    <SCRIPT language='javascript'>

    function sendMail()
    {
        document.reportProblemForm.submit();
    }

    </SCRIPT>

    <META http-equiv=Content-Type content="text/html; charset=windows-1252">
    <LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type='text/css' rel=stylesheet>
</HEAD>

<BODY>

<html:form name='reportProblemForm' type='com.scalar.chiptrack.users.form.ReportProblemForm' action='/reportProblem.do?action=sendMailFromErrorPage'>

<html:hidden name='reportProblemForm' property='to'/>
<html:hidden name='reportProblemForm' property='toName'/>
<html:hidden name='reportProblemForm' property='from'/>
<html:hidden name='reportProblemForm' property='fromName'/>
<html:hidden name='reportProblemForm' property='subject'/>

<table width='100%' cellpadding='0' cellspacing='0' class='NArialL' align='center' border='0' bgcolor='#CCCCCC'>

    <tr>
        <td width='10%'>&nbsp;</td>
        <td colspan='2'><chiptrack:info styleClass='NArialL'/></td>
    </tr>

    <tr>
        <td width='10%'>&nbsp;</td>
        <td colspan='2'><chiptrack:errors styleClass='NArialL'/></td>
    </tr>

    <tr><td colspan='3' align=center>
        <br>
        <input type=submit value='Mail it to Admin' class='txfield'/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input type=button onclick="javascript:window.close();" value='Close this Window' class='txfield'>
        <br><br><br>
    </td></tr>

    <tr>
        <td width='10%'>&nbsp;</td>
        <td width='5%'>Problem:&nbsp;&nbsp; </td>
        <td width='85%'><bean:write name='reportProblemForm' property='subject'/></td>
    </tr>

    <tr><td colspan='3' align=center><br></td></tr>

    <tr>
        <td width='10%'>&nbsp;</td>
        <td colspan='2'>Exception Information: </td>
    </tr>

    <tr>
        <td width='10%'>&nbsp;</td>
        <td colspan='2'><html:textarea name='reportProblemForm' property='message' rows='15' cols='80' styleClass='txfield'/></td>
    </tr>


    <tr><td colspan='3' align=center><br><br></td></tr>

</table>

</html:form>

</body>
</html>